<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <meta charset="utf-8">
    <title>基础话术配置</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" th:href="@{/js/layui/css/layui.css}"  media="all" />
    <link rel="stylesheet" th:href="@{/css/public.css}"  media="all" />
</head>
<body class="childrenBody" >
<form class="layui-form">
    <!--<blockquote class="layui-elem-quote quoteBox">-->
        <fieldset class="layui-elem-field" style="margin-top: 10px;border-width: 2px; border-color: #f2f2f2;">
            <!--<div style="font-size: large;font-weight: bold;" >云呼任务管理</div>-->
            <legend style="font-size: large;font-weight: bold;">基础话术配置</legend>
            <div class="layui-field-box">
                <form class="layui-form">
                    <div class="layui-inline">
                        <div class="layui-input-inline">
                            <input type="text" name="packageName" class="layui-input" placeholder="请输入话术名称搜索"/>
                        </div>
                       <!-- <input type="hidden" name="createUserId" id="createUserId" value="0"/>
                        <input type="hidden" name="canSearchAll" id="canSearchAll" value="false"/>
                        <input type="hidden" name="doSearch" id="doSearch" value="false"/>-->

                        <button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="query" id="query" sec:authorize = "hasAuthority('ROLE_BTN_linkcall:flowConfig:search')">
                            <i class="layui-icon">&#xe615;</i>
                            查询
                        </button>
                    </div>
                    <div class="layui-inline">
                        <a class="layui-btn layui-btn-normal add_btn" id="add_btn" sec:authorize = "hasAuthority('ROLE_BTN_linkcall:flowConfig:add')"><i class="layui-icon">&#xe654;</i>添加话术</a>
                    </div>
                </form>
            </div>
        </fieldset>
    <!--</blockquote>-->
    <table id="speakingPackageTable" lay-filter="speakingPackageTable"></table>
    <!--操作-->
    <script type="text/html" id="techniqueListBar">
        <a class="layui-btn layui-btn-xs" lay-event="edit" sec:authorize = "hasAuthority('ROLE_BTN_linkcall:flowConfig:edit')">编辑</a>
        <a class="layui-btn layui-btn-xs" lay-event="setflow" sec:authorize = "hasAuthority('ROLE_BTN_linkcall:flowConfig:setting')">话术包配置</a>
        <a class="layui-btn layui-btn-xs" lay-event="check" sec:authorize = "hasAuthority('ROLE_BTN_linkcall:flowConfig:check')">审核/反审核</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del" sec:authorize = "hasAuthority('ROLE_BTN_linkcall:flowConfig:del')">删除</a>
    </script>
</form>

<div  id="addDiv" style="display: none"  th:fragment="addDiv">
        <div class="houselabel">
            <form class="layui-form layui-row layui-col-space10" style="padding: 5px 5px;" >
                <div class="layui-row layui-col-space10" style="text-align: center">
                    <div class="layui-form-item magt3">
                        <label class="layui-form-label">话术名称:</label>
                        <div class="layui-input-block">
                            <!--<input type="text" class="layui-input" name="packageName"  placeholder="请输入话术名称">-->
                            <input type="text" name="packageName" lay-verify="required" placeholder="请输入话术名称" autocomplete="off" class="layui-input"
                                   required th:value="${speakingPackage?.customerName}">
                        </div>
                    </div>
                    <div class="layui-form-item"  style="z-index: 999999999">
                        <label class="layui-form-label">类型:</label>
                        <div class="layui-input-inline" width="230px">
                            <!-- <input name="status" type="text" class="layui-input" id="status" placeholder="任务状态">-->
                            <!--<option th:each="it:${packTypes}" th:value="${it.value}" th:text="${it.desc}"></option>-->
                            <th:block th:if="${types!=null}">
                                <select name="packageType" lay-verify="required" lay-filter="packageType" id="packageType" lay-search="" >
                                    <option value="">请选择任务类型(可输关键词)</option>
                                    <option th:each="it:${types}"  th:value="${it.value}" th:text="${it.desc}"
                                            th:selected="(${it.value} == ${speakingPackage?.packageType?.value})"></option>
                                </select>
                            </th:block>
                        </div>
                    </div>
                </div>
                <div style="position:absolute;left: 0px;bottom: -5px; width: 100%;height: 50px;background-color: #f2f2f2;padding: 0px;">
                    <button type="button" class="layui-btn" lay-submit lay-filter="add" style="width: 100px;float: right;margin-top: 7px;margin: 5px 5px;">保存</button>
                    <button type="button" class="layui-btn"  id="cancel"  style="width: 100px;margin-top: 7px;background-color: #b2b2b2;float: right;margin: 5px 5px;" >取消</button>
                </div>
            </form>
        </div>
</div>
<script type="text/javascript" th:inline="javascript">
    const baseUrl = [[${#servletContext.contextPath}]];
</script>
<script type="text/javascript"   th:src="@{/js/jquery-1.7.2.min.js}"></script>
<script type="text/javascript"   th:src="@{/js/layui/layui.js}"></script>
<script type="text/javascript"   th:src="@{/js/page/flow/config/querySpeakingPackage.js(v=${new java.util.Date().getTime()})}"></script>
<script type="text/javascript"   th:src="@{/js/DataTableExtend.js}"></script>
<script type="text/javascript"   th:src="@{/js/page/utils.js}"></script>
</body>


</html>